export const Dao = function () {
  // 当前系统时间
  var date = new Date();
  var hours = date.getHours();//9
  // 结束时间 
  var endDate = new Date()
  if (hours % 2 == 0) {
    endDate.setHours(hours + 2)
  } else {
    endDate.setHours(hours + 1)
    hours--
  }
  endDate.setMinutes(0)
  endDate.setSeconds(0)
  // console.log(endDate.toLocaleString())
  var diff = (endDate.getTime() - date.getTime()) / 1000; //秒数差
  var s = Math.floor(diff % 60);
  var m = Math.floor(diff / 60 % 60);
  var h = Math.floor(diff / 60 / 60)

  return {
    s,
    m,
    h,
    now: hours
  }
}